package com.allenkerr.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by 小柯 on 17/8/25.
 */
@Document(collection = "sequence")
public class Sequence {

  @Id
  private String id;
  private long seq;

  public Sequence() {
  }

  public Sequence(String id, long seq) {
    this.id = id;
    this.seq = seq;
  }

  @Override
  public String toString() {
    return "Sequence{" +
            "id='" + id + '\'' +
            ", seq=" + seq +
            '}';
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public long getSeq() {
    return seq;
  }

  public void setSeq(long seq) {
    this.seq = seq;
  }
}